<script type="text/javascript" src="extras/magistrado/validardados.js" charset="iso-8859-1"></script>
<div id="corpo"  style="width:809px; border-left:1px solid  #3275ac; border-bottom:1px solid  #3275ac; border-right:1px solid  #3275ac;  background-color:#a1c0d9">
	<div id="conteudo" align="center"  style="vertical-align:top;  background-color:#FFFFFF; width:95%;"><br />
		{if $smarty.session.seq_magistrado neq ""}
			<form method="POST" action="?d=magistrado&a=magistrado&f=salvarJornada">
		{else}
			<form method="POST" action="?d=magistrado&a=magistrado&f=salvarTodos">
		{/if}	
		<div id="migalha" align="left" style="background:#ffffff; height:20px; width:98%;  padding-top:4px; padding-left:5px">
			<div id="url" style="float:left"><font color="#3475AB"><strong>Jornada de trabalho</strong></font></div>
		</div>
		<table width="100%" cellpadding="0" cellspacing="0">
      	   	<tr>
      	   		<td>
      	   			{include file='aba/abas.html'}
      	   		</td>
      		</tr>
      	</table>
      	<br><br>
		<table>
			<tr>
      			<td colspan="3" align="center">
      				<div id="div_msg" style="display:{if $smarty.get.msg eq ''}none{else}''{/if}">
      					<font color="Red">{$smarty.get.msg}</font>
      				</div>	
      			</td>
      		</tr>
			{foreach from=$semana item=dado}
				<tr>
					<td width="20%"></td>
					<td width="30%" align="left"><label class="labelcor">{$dado.DESCRICAO}</label></td>
					<td width="50%" valign="middle" align="left">
						{foreach from=$turno item=dado2}
							<input type="checkbox" class="checkcor" name='turno[{$dado.CODIGO}][{$dado2.CODIGO}]'  {if $smarty.session.jornada[$dado.CODIGO][$dado2.CODIGO] eq 'on'}checked{/if}>{$dado2.DESCRICAO}
						{/foreach}	
						
					</td>
				</tr>
			{/foreach}	
		</table>
		
		<table>
			<tr>
	    		<td align="center">
		    			<input type="submit" name="salvar" id="salvar" value="Salvar" class="botaocor">
		    			<input type="button" name="voltar" id="voltar" value="Voltar" class="botaocor" onclick="document.location.href='?d=magistrado&a=magistrado&f=formSituacao'">
	    		</td>
		    </tr>
		</table>
		<script>
			setTimeout("escondeDivMsg();",3000);
		</script>	
		</form>
		</div>
	</div>
</div>